package com.usian.behavior.controller;

import com.usian.behavior.service.ApBehaviorEntryService;
import com.usian.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/entry")
public class ApBehaviorEntryController {

    @Autowired
    private ApBehaviorEntryService apBehaviorEntryService;

    /**
     * article 远程调用 用户行为实体接口
     *
     * @param uresId
     * @param equipmentId
     * @return
     */
    @GetMapping("/find/{uresId}/{equipmentId}")
    public ApBehaviorEntry findByUserIdOrEquipmentId(@PathVariable Integer uresId,@PathVariable Integer equipmentId){
        return apBehaviorEntryService.findByUserIdOrEquipmentId(uresId,equipmentId);
    }


}
